package com.lucweb.service.impl;



import com.lucweb.dao.OtherDao;
import com.lucweb.entity.TaskOther;
import com.lucweb.service.OtherService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("otherService")
public class OtherServiceImpl implements OtherService {
    @Resource
    private OtherDao otherDao;


    @Override
    public String newOtherTask() {

        return null;
    }

    @Override
    public void saveOrUpdate(TaskOther taskOther) {
        otherDao.saveOrUpdate(taskOther);

    }

    @Override
    public TaskOther gettaskOtherById(int taskId) {
        return this.otherDao.getOtherById(taskId);
    }

    @Override
    public boolean deleteOthertask(int taskId) {
        otherDao.deleteOther(taskId);
        return true;
    }

    @Override
    public List<TaskOther> showOther(String companyName) {
        return this.otherDao.OtherList(companyName);
    }

    @Override
    public List<TaskOther> showOther() {
        return this.otherDao.showOther();
    }


    @Override
    public int getmaxId() {
        return this.otherDao.getmaxId();
    }
}
